package com.huilan.hgt.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 基类
 *
 * @author ghy
 * @date 2018-11-09 1:59 PM
 **/
@Data
@Accessors(chain = true)
public class BaseModel<T> extends Model<BaseModel> {
    /**
     * 创建人
     */
    @TableField(value = "CREATER",fill = FieldFill.INSERT)
    private String creater;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 姓氏
     */
    @TableField(exist = false)
    private String realname;


    /**
     * 创建人-静态属性
     */
    public static final String CREATER = "CREATER";


    /**
     * 创建时间-静态属性
     */
    public static final String CREATE_TIME = "CREATE_TIME";
}
